import {ACTION_TYPES} from './ActionTypes'
import {bindActionCreators} from 'redux'

const authActions = {
  setState: (state: object) => ({
    type: ACTION_TYPES.AUTH_SET_STATE,
    state,
  }),
}

export type AuthActionsType = typeof authActions

export function bindAuthActions(dispatch: any): any {
  return bindActionCreators(authActions, dispatch)
}
